package com.jic.product.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.product.entity.CategoryManagement;
import com.jic.product.manage.request.CategoryManagementRequest;
import com.jic.product.manage.response.CategoryManagementResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商家类目资质管理
 * @author :
 * @email :
 * @since : 2020-01-10 07:03:01
 * @version : v1.0.0
 */
@Mapper
public interface  CategoryManagementMapper {

    long insert(CategoryManagementRequest categoryManagement);

    long delete(Long id);

    long update(CategoryManagementRequest categoryManagement);

    CategoryManagement queryByPrimaryKey(Long id);

    List<CategoryManagementResponse> query(CategoryManagementRequest categoryManagement);

    List<CategoryManagementResponse> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("categoryManagement") CategoryManagementRequest categoryManagement);

    long queryPageCount(CategoryManagementRequest categoryManagement);

    CategoryManagementResponse queryInfo(CategoryManagementRequest categoryManagement);
}
